package com.cn.mmd.service;

import com.cn.mmd.mapper.IntegralManageMapper;
import com.cn.mmd.model.IntegralManage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2016/12/14.
 */
@Service("manageIntegralService")
public class ManageIntegralServiceImpl implements ManageIntegralService {

    @Autowired
    private IntegralManageMapper integralManageMapper;

    @Override
    public int updateByPrimaryKeySelective(IntegralManage record) {
        return integralManageMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int insertSelective(IntegralManage record) {
        return integralManageMapper.insertSelective(record);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return integralManageMapper.deleteByPrimaryKey(id);
    }

    @Override
    public List<IntegralManage> selectByAll(IntegralManage integralManage) {
        return integralManageMapper.selectByAll(integralManage);
    }

}
